package com.xin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author l1
 * @since 2017-10-24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("s_teacher_resources")
public class STeacherResources extends Model<STeacherResources> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 教师编号
     */
	@TableField("teacher_id")
	private String teacherId;
    /**
     * 角色名称, 校长,院长,普通
     */
	@TableField("role_name")
	private String roleName;
    /**
     * 学科归属,学院
     */
	@TableField("subject_attribution")
	private String subjectAttribution;

	/**
	 * 专业归属
	 */
	@TableField("prefessional_attribution")
	private String prefessionalAttribution;

    /**
     * 级别
     */
	private Integer level;




	@Override
	protected Serializable pkVal() {
		return this.id;
	}


}
